package com.tencent.hummingbird.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tencent.hummingbird.portal.pojo.UserQuestion;
import com.tencent.hummingbird.portal.mapper.UserQuestionMapper;
import com.tencent.hummingbird.portal.service.IUserQuestionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yxb
 * @since 2024-01-10
 */
@Service
public class UserQuestionServiceImpl extends ServiceImpl<UserQuestionMapper, UserQuestion> implements IUserQuestionService {
    /*@Autowired
    private UserQuestionMapper userQuestionMapper;
    @Override
    public Integer countTasksByUserId(Integer userId) {
        QueryWrapper<UserQuestion> query = new QueryWrapper();
        query.eq("user_id",userId);
        int tasks = userQuestionMapper.selectCount(query);
        return tasks;
    }*/
}
